package com.shuyuwl.core.vo;

/**
 * 排序参数
 * @author xpk
 * @date 2019/10/29
 */
public class Sort {

    /**
     * 通过什么字段排序
     */
    private String by;

    /**
     * 如何排序  DESC,ASC
     */
    private String how;

    public String getBy() {
        return by;
    }

    public void setBy(String by) {
        this.by = by.toUpperCase();
    }

    public String getHow() {
        return how;
    }

    public void setHow(String how) {
        this.how = how.toLowerCase();
    }
}
